package com.scu.hotelsystem.pojo;

import com.scu.hotelsystem.util.Tag;
import com.scu.hotelsystem.util.search.RoomCateSearch;

public class RoomCate {
    private int id;
    private String name;
    private int capacity;
    private int bedNum;
    private double price;
    private double area;
    private String entertainment;
    private String desc;
    private int tag;

    public RoomCate() {
        this.tag = Tag.VALID;
    }

    public RoomCate(RoomCateSearch roomCateSearch){
        if (roomCateSearch != null){
            if (roomCateSearch.getId() != null){
                this.id = roomCateSearch.getId();
            }
            this.name = roomCateSearch.getName();
            if (roomCateSearch.getCapacity() != null){
                this.capacity = roomCateSearch.getCapacity();
            }
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public int getBedNum() {
        return bedNum;
    }

    public void setBedNum(int bedNum) {
        this.bedNum = bedNum;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }

    public String getEntertainment() {
        return entertainment;
    }

    public void setEntertainment(String entertainment) {
        this.entertainment = entertainment;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }
}
